import express from "express";
import tokenMiddleware from "../middleware/token.middleware";
import controller from '../controllers/friend.controller'
import validate from '../middleware/validator.middleware';
import FriendSchemas from '../schemas/friend.schemas'
const router = express.Router();
router.use(tokenMiddleware)

router.get('/', validate(FriendSchemas.friendId), controller.getFriend)
router.get('/contact', validate(FriendSchemas.contactId), controller.getContact)
router.delete('/', validate(FriendSchemas.friendId), controller.deleteFriend)

export default router;